<?php

class Page {
	
	private $data;
	private $pageNo;
	private $pageSize;
	private $totalCount;
	
	function setPageNo($pageNo) {
		$this->pageNo = $pageNo;
	}
	
	function getPageNo() {
		return $this->pageNo;
	}
	
	function setPageSize($pageSize) {
		$this->pageSize=$pageSize;
	}
	
	function getPageSize() {
		return $this->pageSize;
	}
	
	function setTotalCount($totalCount) {
		$this->totalCount = $totalCount;
	}
	
	function getTotalCount() {
		return $this->totalCount;
	}
	
	function setData($data) {
		$this->data = $data;
	}
	
	function getData() {
		return $this->data;
	}
	
	function getPageCount() {
		$count = $this->totalCount / $this->pageSize;
		return ceil($count);
	}
	
}
class News {
	private $id;
	private $title;
	private $author;
	private $publishDate;
	private $updateDate;
	private $content;
	private $count;
	private $reference;
	private $nextId;
	private $prevId;
	
	private $nextNew;
	private $prevNew;
	
	function setId($id) {
		$this->id = $id;
	}
	
	function getId() {
		return $this->id;
	}
	
	function setNextNew($nextNew) {
		$this->nextNew = $nextNew;
	}
	
	function getNextNew() {
		return $this->nextNew;
	}
	
	function setPrevNew($prevNew) {
		$this->prevNew = $prevNew;
	}
	
	function getPrevNew() {
		return $this->prevNew;
	}
	
	function setNextId($nextId) {
		$this->nextId = $nextId;
	}
	
	function getNextId() {
		return $this->nextId;
	}
	
	function setPrevId($prevId) {
		$this->prevId = $prevId;
	}
	
	function getPrevId() {
		return $this->prevId;
	}
	
	function setTitle($title) {
		$this->title = $title;
	}
	
	function getTitle() {
		return $this->title;
	}
	
	function setAuthor($author) {
		$this->author = $author;
	}
	
	function getAuthor() {
		return $this->author;
	}
	
	function setPublishDate($publishDate) {
		$this->publishDate = $publishDate;
	}
	
	function getPublishDate() {
		return $this->publishDate;
	}
	
	function setUpdateDate($updateDate) {
		$this->updateDate = $updateDate;
	}
	
	function getUpdateDate() {
		return $this->updateDate;
	}
	
	function setContent($content) {
		$this->content = $content;
	}
	
	function getContent() {
		return $this->content;
	}
	
	function setCount($count) {
		$this->count = $count;
	}
	
	function getCount() {
		return $this->count;
	}
	
	function setReference($reference) {
		$this->reference = $reference;
	}
	
	function getReference() {
		return $this->reference;
	}
}

class NewSummary {
	private $id;
	private $title;
	private $author;
	
	function setId($id) {
		$this->id = $id;
	}
	
	function getId() {
		return $this->id;
	}
	
	function setTitle($title) {
		$this->title = $title;
	}
	
	function getTitle() {
		return $this->title;
	}
	
	function setAuthor($author) {
		$this->author = $author;
	}
	
	function getAuthor() {
		return $this->author;
	}
}

class Product {
	private $id;
	private $thumbnailId;
	private $name;
	private $catalog;
	private $publishDate;
	private $updateDate;
	private $content;
	private $count;
	private $productResources;
	
	function setId($id) {
		$this->id = $id;
	}
	
	function getId() {
		return $this->id;
	}
	
	function setThumbnailId($thumbnailId) {
		$this->thumbnailId = $thumbnailId;
	}
	
	function getThumbnailId() {
		return $this->thumbnailId;
	}
	
	function setName($name) {
		$this->name = $name;
	}
	
	function getName() {
		return $this->name;
	}
	
	function setCatalog($catalog) {
		$this->catalog = $catalog;
	}
	
	function getCatalog() {
		return $this->catalog;
	}
	
	function setPublishDate($publishDate) {
		$this->publishDate = $publishDate;
	}
	
	function getPublishDate() {
		return $this->publishDate;
	}
	
	function setUpdateDate($updateDate) {
		$this->updateDate = $updateDate;
	}
	
	function getUpdateDate() {
		return $this->updateDate;
	}
	
	function setContent($content) {
		$this->content = $content;
	}
	
	function getContent() {
		return $this->content;
	}
	
	function setCount($count) {
		$this->count = $count;
	}
	
	function getCount() {
		return $this->count;
	}
	
	function setProductResources($productResources) {
		$this->productResources = $productResources;
	}
	
	function getProductResources() {
		return $this->productResources;
	}
}

class ProductResource {
	private $id;
	private $productId;
	private $resourceId;
	private $position;
	
	function setId($id) {
		$this->id = $id;
	}
	
	function getId() {
		return $this->id;
	}
	
	function setProductId($productId) {
		$this->productId = $productId;
	}
	
	function getProductId() {
		return $this->productId;
	}
	
	function setResourceId($resourceId) {
		$this->resourceId = $resourceId;
	}
	
	function getResourceId() {
		return $this->resourceId;
	}
	
	function setPosition($position) {
		$this->position = $position;
	}
	
	function getPosition() {
		return $this->position;
	}
}

class Resource {
	private $id;
	private $type;
	private $data;
	private $fileName;
	private $fileSize;
	private $fileType;
	private $updateDate;
	private $isThumbnail;
	
	function setId($id) {
		$this->id = $id;
	}
	
	function getId() {
		return $this->id;
	}
	
	function setIsThumbnail($isThumbnail) {
		$this->isThumbnail = $isThumbnail;
	}
	
	function getIsThumbnail() {
		return $this->isThumbnail;
	}
	
	function setType($type) {
		$this->type = $type;
	}
	
	function getType() {
		return $this->type;
	}
	
	function setData($data) {
		$this->data = $data;
	}
	
	function getData() {
		return $this->data;
	}
	
	function setFileName($fileName) {
		$this->fileName = $fileName;
	}
	
	function getFileName() {
		return $this->fileName;
	}
	
	function setFileSize($fileSize) {
		$this->fileSize = $fileSize;
	}
	
	function getFileSize() {
		return $this->fileSize;
	}
	
	function setFileType($fileType) {
		$this->fileType = $fileType;
	}
	
	function getFileType() {
		return $this->fileType;
	}
	
	function setUpdateDate($updateDate) {
		$this->updateDate = $updateDate;
	}
	
	function getUpdateDate(){
		return $this->updateDate;
	}
}

class User {
	
	private $userName;
	private $password;
	private $authority;
	
	function getUserName() {
		return $this->userName;
	}
	
	function setUserName($userName) {
		$this->userName = $userName;
	}
	
	function getPassword() {
		return $this->password;
	}
	
	function setPassword($password) {
		$this->password = $password;
	}
	
	function getAuthority() {
		return $this->authority;
	}
	
	function setAuthority($authority) {
		$this->authority = $authority;
	}
	
} 
?>